package com.aidansmeaton.weightmanager;

import com.aidansmeaton.weightmanager.data.DatabaseHelper;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

/** The first activity in the app. */
public class WeightManagerActivity extends Activity {
	
	private DatabaseHelper db;
    
	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dashboard);
        
        db = DatabaseHelper.getInstance(this);
        
        // setup profile first, if not completed yet
        boolean profileSetup = getSharedPreferences("Profile", 0).getBoolean("Complete", false);
        if (!profileSetup){
            Intent setupIntent = new Intent(this, SetUpPersonalActivity.class);
    		this.startActivity(setupIntent);        	
        }
    }
    
    public void goalsClick(View v){
    	/*
    	Intent goalsIntent = new Intent(this, GoalsActivity.class);
		this.startActivity(goalsIntent);
		*/
    }
    
    public void rewardsClick(View v){
    	/*
    	Intent rewardsIntent = new Intent(this, RewardsActivity.class);
		this.startActivity(rewardsIntent);
		*/
    }
    
    public void planClick(View v){
    	
    }
    
    public void remindersClick(View v){
    	
    }
    
    public void feedbackClick(View v){
        Intent feedbackIntent = new Intent(this, FeedbackActivity.class);
		this.startActivity(feedbackIntent);
    }
    
    public void profileClick(View v){
        Intent setupIntent = new Intent(this, SetUpPersonalActivity.class);
		this.startActivity(setupIntent);
    }
    
    public void shareClick(View v){
    	//Intent rmIntent = new Intent(this, RemoteMethodActivity.class);
    	Intent rmIntent = new Intent(this, InspirationActivity.class);
		this.startActivity(rmIntent);
    }
    
    public void diaryClick(View v){
    	Intent diaryIntent = new Intent(this, DiaryActivity.class);
		this.startActivity(diaryIntent);
    }
    
    public void personaliseClick(View v){
    	
    }
}